package com.ctvit.doxpath.service;

import com.ctvit.doxpath.dao.OneDao;
import com.ctvit.doxpath.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class OneService {


    @Autowired
    private OneDao oneDao;

    @Transactional
    public List<User> getAll() {
        List<User> all = oneDao.findAll();
        return all;

    }
}
